#ifndef LOGIN_H
#define LOGIN_H
#include "signup.h"
#include <QDialog>

namespace Ui {
class Login;
}

class Login : public QDialog
{
    Q_OBJECT

public:
    explicit Login(QWidget *parent = nullptr);
    void init();
    ~Login();

private slots:
    void on_closeBtn_clicked();
    //初始化MySQL
    int mysql_init();

    void on_sign_in_clicked();

    void on_sign_up_clicked();

    void on_normal_login_clicked();

private:
    Ui::Login *ui;
    SignUp *s;
    //是否注册标志
    bool registerFlag;

signals:
    void LoginClose();
    //给主窗口传值
    void comToMain(QString,QString);
};

#endif // LOGIN_H
